<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SpringAI：让Java应用拥有AI超能力</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* 首字下沉效果 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #4f46e5;
        }
        
        /* 代码块美化 */
        pre {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 12px;
            padding: 1.5rem;
            overflow-x: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            position: relative;
        }
        
        pre::before {
            content: attr(data-language);
            position: absolute;
            top: 0.5rem;
            right: 1rem;
            font-size: 0.75rem;
            color: #64748b;
            text-transform: uppercase;
        }
        
        /* 卡片悬停效果 */
        .hover-card {
            transition: all 0.3s ease;
        }
        
        .hover-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        /* 渐变文字 */
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
        
        /* 自定义滚动条 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
        
        /* 表格美化 */
        .custom-table {
            border-collapse: separate;
            border-spacing: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }
        
        .custom-table th {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: white;
            font-weight: 600;
        }
        
        .custom-table tr:nth-child(even) {
            background: #f8fafc;
        }
        
        .custom-table tr:hover {
            background: #e0e7ff;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="relative overflow-hidden bg-gradient-to-br from-indigo-600 via-purple-600 to-pink-500 text-white">
        <div class="absolute inset-0 bg-black opacity-20"></div>
        <div class="relative container mx-auto px-6 py-24">
            <div class="text-center animate-fadeInUp">
                <h1 class="text-5xl md:text-7xl font-bold mb-6">
                    SpringAI
                    <span class="block text-3xl md:text-4xl mt-4 font-light">让Java应用拥有AI超能力</span>
                </h1>
                <p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto opacity-90">
                    <i class="fas fa-magic mr-2"></i>
                    一行代码，让你的应用理解自然语言、自动生成代码、智能分析数据
                </p>
                <div class="flex justify-center space-x-4">
                    <div class="bg-white bg-opacity-20 backdrop-blur-lg rounded-full px-6 py-3">
                        <i class="fas fa-rocket mr-2"></i>快速集成
                    </div>
                    <div class="bg-white bg-opacity-20 backdrop-blur-lg rounded-full px-6 py-3">
                        <i class="fas fa-brain mr-2"></i>智能强大
                    </div>
                    <div class="bg-white bg-opacity-20 backdrop-blur-lg rounded-full px-6 py-3">
                        <i class="fas fa-code mr-2"></i>开发友好
                    </div>
                </div>
            </div>
        </div>
        <div class="absolute bottom-0 left-0 right-0">
            <svg viewBox="0 0 1440 120" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M0 120L60 105C120 90 240 60 360 45C480 30 600 30 720 37.5C840 45 960 60 1080 67.5C1200 75 1320 75 1380 75L1440 75V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0Z" fill="white"/>
            </svg>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto px-6 py-12 max-w-6xl">
        
        <!-- Section 1: What is SpringAI -->
        <section class="mb-16 animate-fadeInUp">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 gradient-text">
                    <i class="fas fa-question-circle mr-3"></i>一、SpringAI是什么？为什么你需要它？
                </h2>
                
                <div class="grid md:grid-cols-2 gap-8 mb-8">
                    <div>
                        <p class="text-lg mb-4 drop-cap">想象一下，你的Java应用能够理解自然语言、自动生成代码、智能分析数据、提供个性化推荐。这就是SpringAI带来的变革！它是Spring官方推出的AI集成框架，让你的Java应用轻松获得AI能力。</p>
                    </div>
                    <div class="bg-gradient-to-br from-indigo-50 to-purple-50 rounded-xl p-6">
                        <h3 class="text-xl font-semibold mb-4 text-indigo-700">
                            <i class="fas fa-sparkles mr-2"></i>核心能力
                        </h3>
                        <ul class="space-y-3">
                            <li class="flex items-center"><i class="fas fa-check-circle text-green-500 mr-2"></i>理解自然语言</li>
                            <li class="flex items-center"><i class="fas fa-check-circle text-green-500 mr-2"></i>自动生成代码</li>
                            <li class="flex items-center"><i class="fas fa-check-circle text-green-500 mr-2"></i>智能分析数据</li>
                            <li class="flex items-center"><i class="fas fa-check-circle text-green-500 mr-2"></i>提供个性化推荐</li>
                        </ul>
                    </div>
                </div>

                <!-- Comparison Table -->
                <div class="overflow-x-auto">
                    <table class="w-full custom-table">
                        <thead>
                            <tr>
                                <th class="px-6 py-4 text-left">能力</th>
                                <th class="px-6 py-4 text-left">传统开发</th>
                                <th class="px-6 py-4 text-left">SpringAI开发</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td class="px-6 py-4 font-medium">自然语言处理</td>
                                <td class="px-6 py-4 text-red-600">需要集成第三方SDK</td>
                                <td class="px-6 py-4 text-green-600">开箱即用</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 font-medium">开发效率</td>
                                <td class="px-6 py-4 text-red-600">手动实现复杂逻辑</td>
                                <td class="px-6 py-4 text-green-600">自动生成代码</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 font-medium">维护成本</td>
                                <td class="px-6 py-4 text-red-600">高</td>
                                <td class="px-6 py-4 text-green-600">低</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 font-medium">可扩展性</td>
                                <td class="px-6 py-4 text-red-600">有限</td>
                                <td class="px-6 py-4 text-green-600">优秀</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </section>

        <!-- Section 2: Core Features -->
        <section class="mb-16 animate-fadeInUp">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-8 gradient-text">
                    <i class="fas fa-layer-group mr-3"></i>二、SpringAI核心功能一览
                </h2>
                
                <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
                    <div class="bg-blue-50 rounded-xl p-6 hover-card">
                        <div class="text-blue-600 text-3xl mb-4">
                            <i class="fas fa-language"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">自然语言处理</h3>
                        <ul class="space-y-2 text-gray-700">
                            <li><i class="fas fa-angle-right mr-1"></i>文本分类</li>
                            <li><i class="fas fa-angle-right mr-1"></i>情感分析</li>
                            <li><i class="fas fa-angle-right mr-1"></i>实体识别</li>
                        </ul>
                    </div>
                    
                    <div class="bg-green-50 rounded-xl p-6 hover-card">
                        <div class="text-green-600 text-3xl mb-4">
                            <i class="fas fa-pen-fancy"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">内容生成</h3>
                        <ul class="space-y-2 text-gray-700">
                            <li><i class="fas fa-angle-right mr-1"></i>代码生成</li>
                            <li><i class="fas fa-angle-right mr-1"></i>文档撰写</li>
                            <li><i class="fas fa-angle-right mr-1"></i>创意写作</li>
                        </ul>
                    </div>
                    
                    <div class="bg-purple-50 rounded-xl p-6 hover-card">
                        <div class="text-purple-600 text-3xl mb-4">
                            <i class="fas fa-brain"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">智能决策</h3>
                        <ul class="space-y-2 text-gray-700">
                            <li><i class="fas fa-angle-right mr-1"></i>数据预测</li>
                            <li><i class="fas fa-angle-right mr-1"></i>异常检测</li>
                            <li><i class="fas fa-angle-right mr-1"></i>推荐系统</li>
                        </ul>
                    </div>
                    
                    <div class="bg-orange-50 rounded-xl p-6 hover-card">
                        <div class="text-orange-600 text-3xl mb-4">
                            <i class="fas fa-network-wired"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">多模型支持</h3>
                        <ul class="space-y-2 text-gray-700">
                            <li><i class="fas fa-angle-right mr-1"></i>OpenAI</li>
                            <li><i class="fas fa-angle-right mr-1"></i>Azure AI</li>
                            <li><i class="fas fa-angle-right mr-1"></i>本地模型</li>
                        </ul>
                    </div>
                </div>

                <!-- Architecture Diagram -->
                <div class="mt-8 bg-gray-50 rounde